package mymy;
//            子类   继承     父类
//           具体         抽象
public class Cat extends Animal{
    private String name;
    private final int age  = 85;
    public static final String MY_SCHOOL="中国社会大学";

    public Cat() {
       super("猫科");
     /*  age = 88;*/
    }

    public Cat(String name) {
        this();
        this.name = name;
    }

    /*public Cat() {
        super.setType("猫科");
        this.setType("猫科");
        this.live();
        super.live();
    }*/

    @Override
    public void live(){
//        super.live();
        System.out.println("猫好吃懒做.....");
    }

    public void say(){
        System.out.println("猫会叫");
        this.color = color;// 子类中可以随意访问 protected 的变量

      /*  final int i = 5 ;
        i = 8;*/
    }

    public void say(String toSay){
        System.out.println("猫会叫: " + toSay);
    }
}
